import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { VideoQuery, Videotui, Violate } from './types';

// 查询视频管理列表
export const listVideo = (query: VideoQuery): AxiosPromise<TableInfoVO<Videotui>> => {
  return request({
    url: '/task/video/list',
    method: 'get',
    params: query
  });
};

/**
 * 违规处理
 */
export const Vionseut = (data: Violate) => {
  return request({
    url: '/task/video/violate',
    method: 'put',
    data: data
  });
};
